package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import com.atguigu.entity.to.SkuReductionTo;
import com.atguigu.entity.to.SpuBoundTo;
import com.atguigu.entity.vo.SkuHasStokeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "gulimall-coupon")
public interface CouponFeignService {

    @RequestMapping("/coupon/spubounds/save/bound")
    public R saveBoundInfo(@RequestBody SpuBoundTo spuBoundTo);

    @RequestMapping("/coupon/skufullreduction/save/reduction")
    public R  saveSkuReductionInfo(@RequestBody SkuReductionTo skuReductionTo);
}
